import {observable, action} from 'mobx';

export default class IndexStore {
    @observable selectedTab='home';
    @observable hidden = false;

    @action  changeSelectTab = (tab, history) => {
        if (this.selectedTab !== tab) {
            this.selectedTab = tab;
            history.push('/index/' + tab);
        }
    }

}
